# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Marcin Karpezo <sirmacik at gmail dot com>
# Contributor: Andreas Hauser <andy-aur@splashground.de>

pkgname=dblatex
pkgver=0.3.12
pkgrel=5
pkgdesc='DocBook (XML and SGML) to DVI, PDF, PostScript converter using latex.'
arch=('any')
url='http://dblatex.sourceforge.net/'
license=('GPL')
depends=('docbook-xsl' 'docbook-xml' 'libxslt' 'python' 'texlive-core' 'texlive-htmlxml'
         'texlive-latexextra' 'texlive-pictures' 'texlive-science')
source=("https://downloads.sourceforge.net/project/dblatex/dblatex/${pkgname}-${pkgver}/${pkgname}3-${pkgver}.tar.bz2")
md5sums=('550adafd078432ff144b57d90c647714')
sha256sums=('16e82786272ed1806a079d37914d7ba7a594db792dc4cc34c1c3737dbd4da079')

package() {
  cd "${srcdir}/${pkgname}3-${pkgver}"

  python setup.py install --root "${pkgdir}" --catalogs=/etc/xml/docbook-xml
}
